]> dgit.raspbian.org Git - libaio.git/commit
[PATCH libaio 08/26] Use new symver function attribute to support LTO builds
authorGuillem Jover <guillem@hadrons.org>
Tue, 2 Nov 2021 21:37:32 +0000 (22:37 +0100)
committerGuillem Jover <guillem@debian.org>
Thu, 28 Mar 2024 00:01:37 +0000 (01:01 +0100)
commit54b2d70d4f0a200c325374d6d55cdab7cedde9ba
treec6c4b55bc0d3b15bab5fb4b95373b31752d43700
parent9e71fc53a13f1ee6ddbd1782b3b6d9261254e961
[PATCH libaio 08/26] Use new symver function attribute to support LTO builds

The LTO support cannot work properly when there are versioned symbols
via asm statements, as those are not seen by the compiler. Use the new
function attributes if supported instead of the asm statements.

We need to move the SYMVER calls after the function definitions
otherwise it will reference symbols not yet seen.

Origin: vendor
Forwarded: https://marc.info/?l=linux-aio&m=164999309520544
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0008-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h